package ylg.com.cn.youtube._data.source;

import android.support.annotation.Nullable;

import java.util.List;

import ylg.com.cn.youtube._data.Video;

/**
 * Created by MyPC on 2017/1/11.
 */
public interface VideoDataSource {

    //将获取的数据返回过去;
    interface GetVideosCallBack {
        void onVideoLoaded(List<Video> data);
        void onDataNotAvailable(String message);
    }

    /* 主页面获取视频*/
    void getHomePageVideos (
            @Nullable String usertoken,
            @Nullable int lastOneId,
            GetVideosCallBack callBack
    );

    /* 通过分类获取视频*/
    void getHomePageVideosByCategory(@Nullable Video.Category category,
                                     @Nullable String usertoken,
                                     @Nullable int lastOneId,
                                     GetVideosCallBack callBack);


}
